import { Entity, Column, PrimaryGeneratedColumn, CreateDateColumn } from 'typeorm';

@Entity()
export class Message {
  @PrimaryGeneratedColumn('uuid')
  id!: string;

  @Column()
  sessionId!: string;

  @Column()
  senderId!: string;

  @Column()
  content!: string;

  @CreateDateColumn()
  timestamp!: Date;
}